package com.community.contents.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.community.contents.dto.DiscussDTO;
import com.community.contents.dto.TopicDTO;
import com.community.contents.entity.TopicEntity;
import com.community.contents.entity.UserEntity;
import com.community.contents.vo.TopicVo;

/**
 * <p>
 * 圈子 服务类
 * </p>
 *
 * @author admin
 * @since 2023-02-22
 */
public interface ITopicService extends IService<TopicEntity> {


    public void pageDto(Page<TopicDTO> page);

    /**
    * detail
    * @Description:查询圈子详情
    * @Date: 2023/3/8 17:35
    * @Author: hjs
    * @param topicId: 圈子ID
    * @return: com.community.contents.vo.TopicVo
    **/
    TopicVo detail(Integer topicId);

    /**
    * userList
    * @Description: 查询圈子下的圈友列表
    * @Date: 2023/3/8 17:34
    * @Author: hjs
    * @param topicId:  圈子ID
    * @param page:
    * @return: com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.community.contents.entity.UserEntity>
    **/
    void userList(Integer topicId, Page<UserEntity> page);
}
